<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>AdminLTE 2 | General Form Elements</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/adminlte/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" th:href="@{/adminlte/css/skins/_all-skins.min.css}">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<section class="content">
    <!-- Horizontal Form -->
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title" th:text="${title}"></h3>
        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form class="form-horizontal" action="/Order/addOrder" method="post" th:object="${order}">
            <div class="box-body">
                <input type="hidden" class="form-control" th:field="*{id}">
                <div class="form-group">
                    <label class="col-sm-4 control-label">用户id</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" th:field="*{userId}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">服务id</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" th:field="*{serviceId}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">送货地址</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" th:field="*{deliveryAddressId}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">支付类型</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" th:field="*{payType}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">支付状态</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" th:field="*{orderStatus}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">总价</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" th:field="*{sumPrice}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">支付时间</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" th:field="*{orderDate}">
                    </div>
                </div>
            </div>
            <!-- /.box-body -->
            <div class="box-footer">
                <div class="col-sm-4"></div>
                <div class="col-sm-4">
                    <button type="submit" class="btn btn-default">取消</button>
                    <button type="submit" class="btn btn-info pull-right">确定</button>
                </div>
            </div>
            <!-- /.box-footer -->
        </form>
    </div>
    <!-- /.box -->
</section>

<!-- jQuery 3 -->
<script th:src="@{/adminlte/bower_components/jquery/dist/jquery.min.js}"></script>
<!-- Bootstrap 3.3.7 -->
<script th:src="@{/adminlte/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/adminlte/bower_components/fastclick/lib/fastclick.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/adminlte/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes -->
<script th:src="@{/adminlte/js/demo.js}"></script>
</body>
</html>